﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Model.Permission
{
    /// <summary>
    /// 登录菜单权限
    /// </summary>
    public class LoginModuleEntity
    {
        /// <summary>
        /// 菜单类型名字
        /// </summary>
        public string ModuleTypeName { get; set; }

        /// <summary>
        /// 菜单名字
        /// </summary>
        public string ModuleName { get; set; }

        /// <summary>
        /// 菜单链接
        /// </summary>
        public string ModuleURL { get; set; }

        /// <summary>
        /// 角色id
        /// </summary>
        public int RoleID { get; set; }

        /// <summary>
        /// 菜单id
        /// </summary>
        public int ModuleID { get; set; }

        /// <summary>
        /// 权限标识
        /// </summary>
        public string AuthorityTag { get; set; }

        /// <summary>
        /// 菜单排序
        /// </summary>
        public int ModuleOrder { get; set; }

        /// <summary>
        /// 菜单类型排序
        /// </summary>
        public int ModuleTypeOrder { get; set; }

        /// <summary>
        /// 是否显示 1 显示 2 不显示
        /// </summary>
        public int Display { get; set; }

        /// <summary>
        /// 是否启用 1 启用 2 不启用 
        /// </summary>
        public int Disabled { get; set; }


        public LoginModuleEntity(string moduleTypeName, string moduleName, string moduleURL, int roleID, int moduleID, string authorityTag, int moduleOrder, int moduleTypeOrder, int display, int disabled)
        {
            this.ModuleTypeName = moduleTypeName;
            this.ModuleName = moduleName;
            this.ModuleURL = moduleURL;
            this.RoleID = roleID;
            this.ModuleID = moduleID;
            this.AuthorityTag = authorityTag;
            this.ModuleOrder = moduleOrder;
            this.ModuleTypeOrder = moduleTypeOrder;
            this.Display = display;
            this.Disabled = disabled;
        }
    }
}
